import server from '../utils/request'
// 渲染数据
export function getinitHome(params) {
    return server({
        url: '/home',
        method: 'get',
        params: params
    })
}

// 单删
export function deleteHomeApi(data) {
    return server({
        url: '/deleteHomeByid',
        method: 'post',
        data: data
    })
}
//批量删除
export function deleteMoreApi(data) {
    return server({
        url: '/deleteMoreByids',
        method: 'post',
        data: data
    })
}
//添加
export function addDataApi(data) {
    return server({
        url: '/addData',
        method: 'post',
        data: data
    })
}
//修改
export function updateData(data) {
    return server({
        url: '/updateData',
        method: 'post',
        data: data
    })
}